package com.fis.hthk.dblinkapi.util;


import com.agileitp.forte.framework.TextData;
import com.ssaglobal.scm.wms.service.baseobjects.EXEDataObject;
import com.ssaglobal.scm.wms.service.exeprocessmanager.TransactionServiceSORemote;
public class WmsWebuiValidationDeleteImpl {
	
	protected static final String internalCaller = "internalCall";
	
	
		
	public static EXEDataObject delete(String deleteSql, String db_connection, String wmWhseID, String provider) throws Exception
	{				
		try
		{
			TransactionServiceSORemote remote = EJBRemote.getRemote(provider);								
			EXEDataObject obj = remote.delete(new TextData(wmWhseID),db_connection, new TextData(deleteSql),null, true,internalCaller,null);
			return obj;
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
			throw new Exception(ex.getMessage(), ex);
		}

	}
}
